public class Uebung { public static void main(String arg[]) { int y; int x; for ( y = 1; y <= 10; y++ ) { for ( x = 1; x <= 10; x++ ) { if ( y == x ) { System.out.print("x"); } else { System.out.print(" "); } } System.out.println(""); } } }